<template>
  <div style="margin-left: 550px">
    <form>
      <table ng="0" cellpadding="10" style="width: 500px">
        <tr>
          <td>支付方式：</td>
          <td><el-input v-model="payment.payment" placeholder="请输入内容" :disabled="true"></el-input></td>
        </tr>
        <tr>
          <td>支付账号：</td>
          <td><el-input v-model="payment.paynum" placeholder="请输入内容"></el-input></td>
        </tr>
        <tr>
          <td>收款账号：</td>
          <td><el-input v-model="payment.collnum" placeholder="请输入内容"></el-input></td>
        </tr>
      </table>
    </form>
    <el-button type="success" plain @click="updateinfo()">保存修改</el-button><br>

  </div>
</template>

<script>
import router from "../../router";

export default {
  data(){
    return{
      payment: {}

    }
  },
  created(){
    //发送请求获取数据
    this.axios.get(this.baseUrl+"payment/findByUid")
      .then(res =>{
        //res.data   ResponseResult
        console.log(res.data.data);
        //
        this.payment = res.data.data;
      });
  },

  methods:{
    updateinfo:function () {
      this.axios.post(this.baseUrl+"teacher/updatepayment",this.payment)
        .then(res =>{

        })
    }
  }
}
</script>

<style scoped>
.el-header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>
